@isTest

private class testAchieve {
    
    static testMethod void testTrigger() {
         String rtid;
        Profile p  = [select id from profile where name=: 'System Administrator'];       

         User u3 =new User (alias = 'new', email = 'shlia@isoftstone.com', emailencodingkey='UTF-8', lastname = 'Testing', languagelocalekey = 'en_US', localesidkey='en_US', profileid = p.id, timezonesidkey = 'Asia/Shanghai', username='new2@testorg1.com');
        insert u3;
        User u2 =new User (alias = 'new', email = 'shlia@isoftstone.com', emailencodingkey='UTF-8', lastname = 'Testing', languagelocalekey = 'en_US', localesidkey='en_US', profileid = p.id, timezonesidkey = 'Asia/Shanghai', username='new@testorg1.com',managerid=u3.id);
        insert u2;
        
        User u1 =new User (alias = 'standt', email = 'shlia@isoftstone.com', emailencodingkey='UTF-8', lastname = 'Testing', languagelocalekey = 'en_US', localesidkey='en_US', profileid = p.id, timezonesidkey = 'Asia/Shanghai', username='standarduser@testorg1.com',managerid=u2.id);
        insert u1;

        
        system.runas(u1){
            hospital__c h=new hospital__c(name='aaaa',Nickname__c='hgfd');
            insert h;
           
            NewBornNumber__c nbn=new NewBornNumber__c(month__c='1',year__c='2012',hospital__c=h.id);
            insert nbn;
            Achieve__c a=new Achieve__c(month__c='1',year__c='2012',hospital_name__c=h.id);
            insert a;
            
        }
        
     }
}